//
// Created by Mzoro on 2022/3/7.
//

#include <stdio.h>
#include "../../demo1/utils/utils.h"
#include "../escape/escape.h"
#include "atof.h"

int main() {

    setbuf(stdout, NULL);
    char line[STR_LENGTH];
    int length;
    // debug 用，打印一下输入了什么
//    char line_to_show[STR_LENGTH];
//    escape(line_to_show, line);
//    printf("%s", line_to_show);
    while ((length = getLine(line, STR_LENGTH)) <= 0 || line[0] == '\n' || line[0] == '\0') {
        printf("请输入数字\n");
    }



    double result = atof(line);
    printf("Number is %f", result);

}
